package com.qf.service.impl;

import com.qf.mapper.AdminMapper;
import com.qf.pojo.Admin;
import com.qf.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public boolean login(Admin admin) {
        //查询数据库获得的admin对象
        Admin db_admin = adminMapper.login(admin);
        //判断
        if (db_admin != null) {
            return true;
        }

        return false;
    }
}
